<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:a="http://richfaces.org/a4j"
      xmlns:r="http://richfaces.org/rich"
      xmlns:m="http://www.caradvert.com/main">

    <ui:composition>

        <h:panelGroup rendered="#{hideMessages ne 'true'}">
            <h:panelGroup layout="block" rendered="#{facesHelper.hasErrors()}">
                <ul class="errorMessage">
                    <ui:repeat value="#{facesHelper.errorMessages}" var="message">
                        <li class="lj">
                            #{message.summary}
                        </li>
                    </ui:repeat>
                </ul>
            </h:panelGroup>
            <h:panelGroup layout="block" rendered="#{facesHelper.hasInfos()}">
                <ul class="infoMessage">
                    <ui:repeat value="#{facesHelper.infoMessages}" var="message">
                        <li class="lj">
                            #{message.summary}
                        </li>
                    </ui:repeat>
                </ul>
            </h:panelGroup>
        </h:panelGroup>
        
    </ui:composition>
</html>